﻿using System;

namespace NavFx
{
	/// <summary>
	/// Thrown when loading an assembly from a stream fails
	/// </summary>
	public class AssemblyLoadException: Exception
	{
		/// <summary>
		/// Default constructor
		/// </summary>
		public AssemblyLoadException()
			: base("Failed to load assembly from stream, no pages were registered.")
		{
			//nothing else to do
		}

		/// <summary>
		/// Constructor overload supporting a custom error message
		/// </summary>
		public AssemblyLoadException(string message)
			: base(message)
		{
			//nothing else to do
		}

		/// <summary>
		/// Constructor overload supporting a custom error message and inner exception
		/// </summary>
		public AssemblyLoadException(string message, Exception innerException)
			: base(message, innerException)
		{
			//nothing else to do
		}
	}
}
